<link rel="stylesheet" type="text/css" href="../core/resource/css/coupon.css">
<div class='fui-page  fui-page-current coupon-my-page'>
  <div class="fui-header">
    <div class="fui-header-left">
      <a class="back" ng-click="goback()"></a>
    </div>
    <div class="title">我的优惠券</div>
    <div class="fui-header-right">&nbsp;</div></div>
  <div class='fui-content'>
    <div class='fui-tab fui-tab-danger' id='cateTab'>
      <a href="javascript:;" ng-click="access_json('jy_weishop/coupon.myindex/main')" ng-class="{'active':pagedata.status==0}" data-cate=''>未使用</a>
      <a href="javascript:;" ng-click="access_json('jy_weishop/coupon.myindex/main/status=1')" ng-class="{'active':pagedata.status==1}">已使用</a></div>
	  <div ng-if="pagedata.list==''" class="fui-message fui-message-popup in content-empty" style=" margin-top: 0; padding-top: 0; position: relative; height: auto; background: none;">
		  <div class="icon ">
			<i class="icon icon-information"></i>
		  </div>
		  <div class="content">您还没有优惠券~</div>
		  <a ng-show="pagedata.setting.status2==1 && pagedata.list==''" class="btn btn-default-o external" style="display: block;border-radius:1rem;margin:0.5rem 2rem" href="javascript:;" ng-click="access_json('jy_weishop/coupon.index/main')">
			<i class="icon icon-gifts" style="font-size:1rem"></i>赶紧去领券中心看看更多优惠券~
		  </a>
	  </div>
    <div id="container" class="coupon-container coupon-list" ng-repeat="item in pagedata.list">
      <a href="javascript:;" ng-click="access_json('jy_weishop/coupon.mydetail/main/id='+item.id)" class="coupon-item  {{item.coupon.color}}">        <div class="coupon-dots">
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
        </div>
        <div class="coupon-type">{{item.coupon.tagtitle}}</div>
        <div class="coupon-left">
          <div class="title">{{item.coupon.title3}}</div>
          <div class="subtitle">{{item.coupon.title2}}</div></div>
        <div class="coupon-right">
          <div class="title">{{item.coupon.title}}</div>
          <div class="subtitle">{{item.coupon.title5}}</div>
          <div ng-if="item.coupon.merchid!=0" class="subtitle">限购[{{item.coupon.merchname}}]店铺商品</div>
          <div class="usetime">
            <div class="text">              <div ng-if="item.coupon.timelimittype==0">有效期: 永久有效</div>              <div ng-if="item.past==1">有效期: 已过期</div>              <div ng-if="item.past==0 && item.coupon.timelimittype!=0">有效期: {{item.time}}</div></div>            <div class="usebtn">              <div ng-if="item.past==1">已过期</div>              <div ng-if="item.isuse==1">已使用</div>              <div ng-if="item.isuse!=1 && item.past!=1">立即使用</div></div>          </div>
        </div>
      </a>
    </div>
  </div>
</div>